package com.nuoniu.sibanyun.entity.cms;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 网站模版管理
 * </p>
 *
 * @author 小啊刚
 * @since 2021-08-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("cms_template")
@ApiModel(value="CmsTemplate对象", description="网站模版管理")
public class CmsTemplate extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "风格类型")
    @TableField("style_type")
    private Boolean styleType;

    @ApiModelProperty(value = "缩略图")
    @TableField("thumbnail")
    private String thumbnail;

    @ApiModelProperty(value = "模版名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "时长")
    @TableField("duration")
    private String duration;

    @ApiModelProperty(value = "总额")
    @TableField("total_price")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "支付时间")
    @TableField("pay_date")
    private LocalDateTime payDate;

    @ApiModelProperty(value = "有效时间")
    @TableField("validity_date")
    private LocalDateTime validityDate;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "安装时间")
    @TableField("install_date")
    private LocalDateTime installDate;

    @ApiModelProperty(value = "是否收费:0免费1:收费")
    @TableField("is_charge")
    private Boolean isCharge;


}
